body {
  background: #FFFFFF;
}

@media screen and (max-width:800px){
header {
  background-image: url(../imagenes/Melilla.jpg);
}
}

/* style para el contenido dinámica*/

@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,700,700i');
@import url('https://fonts.googleapis.com/css?family=Bree+Serif');

.body {
  display: flex;
  justify-content: center;
  padding: 10px;
  background: #efefef;
  font-family: 'Source Sans Pro', sans-serif;
  color: #333;
}
@media (min-width: 600px) {
  .body {
    padding: 60px 10px;
  }
}
h2 {
  margin: 0;
  padding: 20px 0;
  text-align: center;
  font-size: 4vw;
  font-weight: 200;
  background: linear-gradient(45deg, #ccb370, #646a82);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
@media screen and (max-width: 800px) {
  h2{ font-size: 12vw;} }

.h2-empleo{
  margin-top: 25px;
  text-align: center;
}

@media screen and (max-width:800px){
  h2 {
    padding: 0;
    text-align: left;
  }
}
span {
  color: #ccb370;
}
.dinamicimg {
  display: block;
  margin: 0 auto;
  margin-top: 30px;
  max-width: 100%;
}
.dinamicimg2 {
  display: block;
  width: 200px;
  margin: 0 auto;
}
@media screen and (max-width:800px){
  .dinamicimg {
    margin-top: 20px;
  }
  .dinamicimg2 {
    margin-top: 20px;
    max-width: 100px;
  }
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  max-width: 800px;
  background: #e5e5e5;
  box-shadow: 0 48px 80px -32px rgba(0,0,0,0.3);
}
.input {
  position: absolute;
  opacity: 0;
}
.label {
  width: 100%;
  padding: 20px 30px;
  background: #e5e5e5;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  color: #7f7f7f;
  transition: background 0.1s, color 0.1s;
}
.label:hover {
  background: #ccb370;
}
.label:active {
  background: #ccb370;
}
.input:focus + .label {
  z-index: 1;
}
.input:checked + .label {
  background: #FFFFFF;
  color: #000;
}
@media (min-width: 600px) {
  .label {
    width: auto;
  }
}
.panel {
  display: none;
  padding: 20px 30px 30px;
  background: #FFFFFF;
  p {
  margin-top: 20px;
  margin-bottom: 0;
  padding: 0;
  font-size: 20px;
  line-height: 1.3;
    color: #1a1a1a;
}
}
@media screen and (max-width:800px){
  .panel {
    padding: 20px;
  }
}
@media (min-width: 600px) {
  .panel {
    order: 99;
  }
}
.input:checked + .label + .panel {
  display: block;
}

/*Cartel de Empleos*/

.cartel-empleo {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Permite que los elementos se ajusten */
  padding: 5px; /* Añade algo de espacio alrededor */
  box-sizing: border-box; /* Asegura que el padding no afecte el ancho total */
}

.cartel-empleo img {
  max-width: 100%; /* Asegura que la imagen no exceda el ancho del contenedor */
  height: auto; /* Mantiene la proporción de la imagen */
}

/* Animación al hacer scroll hacia las imagenes */

.image-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 1s, transform 1s;
}

.image-left.show {
  opacity: 1;
  transform: translateX(0);
}

/*Button para descargar pdf*/

.div-button{
     background: #efefef;
     display: flex;
     justify-content: center;
     align-items: center;
     height: 10vh;
     margin: 0;
}
  .boton-descargar {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    margin:0;
    transition: transform 0.3s ease, color 0.3s ease;
  }
    .boton-descargar:hover {
        transform: scale(1.1);
        background-color: #45a049;
    }
@media screen and (max-width:800px){
  .div-button{
    margin-top: 5vh;
  }
}

/* Estilos para el botón */

.modern-button {
    display: block;
    width: 200px;
    margin: 0px auto;
    margin-bottom: 20px;
    padding: 15px 30px;
    font-size: 16px;
    color: #ffffff;
    background-color: #ccb370;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-align: center;
    text-decoration: none; /* Elimina el subrayado del enlace */
    transition: transform 0.2s ease-in-out, background-color 0.3s ease;
    outline: none;
}
@media screen and (max-width:800px){
  .modern-button{
    margin-bottom: 0;
  }
}

/* Animación de salto al hacer clic */
@keyframes happyJump {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-15px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-7px); }
}

.modern-button:active {
    animation: happyJump 0.6s ease-in-out;
    background-color: #bda054; /* Color más oscuro al hacer clic */
}